<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
    <script>
    (function(){
        window.addEventListener('hashchange',function(){alert("A")});
    })()
    </script>
</html>